#include <stdio.h>

extern unsigned int rand1(void);
extern void srand1(unsigned int seed);

int main(void)
{
    unsigned int seed;
    int count;

    printf("Enter your chioce for seed:");

    while (scanf("%u", &seed) == 1)
    {
        srand1(seed);

        for (count = 0; count < 5; count++)
            printf("%d\n", rand1());
        
        printf("Enter your chioce for seed (q to quit):");
    }

    return 0;
}